#ifndef _LED_CTRL_H_
#define _LED_CTRL_H_


enum{
    IDX_YELLOW_LED = 0,
    IDX_BLUE_LED,
    IDX_GREEN_LED,
    IDX_RED_LED,
    IDX_WHITE_LED,
};


#define LEDC_LS_TIMER          LEDC_TIMER_1
#define LEDC_LS_MODE           LEDC_LOW_SPEED_MODE

//yellow
#define LEDC_LS_CH0_GPIO       GPIO_NUM_32
#define LEDC_LS_CH0_CHANNEL    LEDC_CHANNEL_0

//blue
#define LEDC_LS_CH1_GPIO       GPIO_NUM_33
#define LEDC_LS_CH1_CHANNEL    LEDC_CHANNEL_1

//green
#define LEDC_LS_CH2_GPIO       GPIO_NUM_25
#define LEDC_LS_CH2_CHANNEL    LEDC_CHANNEL_2

//red
#define LEDC_LS_CH3_GPIO       GPIO_NUM_26
#define LEDC_LS_CH3_CHANNEL    LEDC_CHANNEL_3

//white
#define LEDC_LS_CH4_GPIO       GPIO_NUM_27
#define LEDC_LS_CH4_CHANNEL    LEDC_CHANNEL_4


#define LEDC_TEST_CH_NUM       (5)
#define LEDC_TEST_DUTY         (8192-1)   //2^13 - 1
#define LEDC_TEST_FADE_TIME    (2000)

extern void led_fade_process(unsigned char flag);
extern void led_set_onoff(unsigned char flag);
extern void led_ctrl_init(void);

#endif

